package com.itlong.cloud.commons.resource;

import com.itlong.cloud.commons.service.IPushCloudElevatorChangeLogService;
import com.itlong.cloud.equip.commons.IPushCloudElevatorChangeLogServiceClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * <desc>
 *      云电梯响应硬件结果业务处理暴露接口实现类
 * </desc>
 *
 * @createDate 2018/04/03
 */
@RestController
public class PushCloudElevatorChangeLogServiceResource implements IPushCloudElevatorChangeLogServiceClient {

    @Autowired
    IPushCloudElevatorChangeLogService iPushCloudElevatorChangeLogService;

    /**
     * <desc>
     *      任务调度执行同步业务指令至响应硬件结果表
     * </desc>
     *
     * @author Juguang.S
     * @createDate 2018/04/03
     */
    @Override
    @RequestMapping(path = "/smartCommunity/interface/elevator/timeTaskPushCloudIntercom", method = RequestMethod.POST)
    public void timeTaskPushCloudElevator() throws Exception {
        iPushCloudElevatorChangeLogService.timeTaskPushCloudElevator();
    }
}
